﻿using AutoMapper;
using Esosi.Register.Hospital.Models;
using Esosi.Repository.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace Esosi.Register.Hospital.Profiles
{
    public class RegisterCalcProfile : Profile
    {
        public RegisterCalcProfile()
        {
            CreateMap<RegisterHospitalTpi, RegisterCalcModel>()
                .ForMember(dest => dest.DeptId, opt => opt.MapFrom(src => src.DeptId))
                .ForMember(dest => dest.CostOfMedicalRecord, opt => opt.MapFrom(src => src.CostOfMedicalRecord))
                .ForMember(dest => dest.CostOfProduction, opt => opt.MapFrom(src => src.CostOfProduction))
                .ForMember(dest => dest.RegisterType, opt => opt.MapFrom(src => src.RegisterType))
                .ForMember(dest => dest.ClinicType, opt => opt.MapFrom(src => src.ClinicType))
                .ReverseMap();
        }
    }
}